package com.edu.bhu.admin.mapper;

import java.util.List;
import com.edu.bhu.admin.domain.CosOrder;

/**
 * 订单Mapper接口
 * 
 * @author wangjinao
 * @date 2022-03-17
 */
public interface CosOrderMapper 
{
    /**
     * 查询订单
     * 
     * @param orderId 订单主键
     * @return 订单
     */
    public CosOrder selectCosOrderByOrderId(Long orderId);

    /**
     * 查询订单列表
     * 
     * @param cosOrder 订单
     * @return 订单集合
     */
    public List<CosOrder> selectCosOrderList(CosOrder cosOrder);

    /**
     * 新增订单
     * 
     * @param cosOrder 订单
     * @return 结果
     */
    public int insertCosOrder(CosOrder cosOrder);

    /**
     * 修改订单
     * 
     * @param cosOrder 订单
     * @return 结果
     */
    public int updateCosOrder(CosOrder cosOrder);

    /**
     * 删除订单
     * 
     * @param orderId 订单主键
     * @return 结果
     */
    public int deleteCosOrderByOrderId(Long orderId);

    /**
     * 批量删除订单
     * 
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCosOrderByOrderIds(String[] orderIds);
}
